package org.xtremeobjects.anotations.state;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * The method annotated will be called each time the state is exited.
 * @author Juan
 */
@Retention(value=RetentionPolicy.RUNTIME)
@Target(value=ElementType.METHOD)
public @interface OnStateExit {
	/**
	 * To what state machine this belongs.
	 * @return
	 */
	String statemachine() default("Default");
	
	/**
	 * State this method is called on exit.
	 * @return
	 */
	String state();

}
